

<?php
/* @var $this LimitationsController */
/* @var $model Limitations */
/* @var $form CActiveForm */
?>
<script type="text/javascript">
  $(function() {
    $('#datetimepicker1').datetimepicker({
      language: 'pt-BR'
    });
  });
</script>

<style type="text/css">
fieldset.scheduler-border {
    border: 1px groove #ddd !important;
    padding: 0 1.4em 1.4em 1.4em !important;
    margin: 0 0 1.5em 0 !important;
    -webkit-box-shadow:  0px 0px 0px 0px #000;
            box-shadow:  0px 0px 0px 0px #000;
}

legend.scheduler-border {
    width:inherit; /* Or auto */
    padding:0 10px; /* To give a bit of padding on the left and right */
    border-bottom:none;

}
</style>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'limitations-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<?php echo $form->errorSummary($model); ?>

 <fieldset class="scheduler-border">
    <legend class="scheduler-border">limitations</legend>
		<div class="form-group">
			<?php echo $form->labelEx($model,'name'); ?>
			<?php echo $form->textField($model,'name'); ?>
			<?php echo $form->error($model,'name'); ?>
		</div>
	
		<div class="form-group">
			<?php echo $form->labelEx($model,'description'); ?>
			<?php echo $form->textArea($model,'description'); ?>
			<?php echo $form->error($model,'description'); ?>
		</div>
	
		<div class="form-group">
			<?php echo $form->labelEx($model,'by_byte_in'); ?>
			<?php echo $form->textField($model,'by_byte_in'); ?>
			<?php echo $form->error($model,'by_byte_in'); ?>
		</div>
	
		<div class="form-group">
			<?php echo $form->labelEx($model,'by_byte_out'); ?>
			<?php echo $form->textField($model,'by_byte_out'); ?>
			<?php echo $form->error($model,'by_byte_out'); ?>
		</div>
	
		<div class="form-group">
			<?php echo $form->labelEx($model,'by_byte_total'); ?>
			<?php echo $form->textField($model,'by_byte_total'); ?>
			<?php echo $form->error($model,'by_byte_total'); ?>
		</div>
	
		<div class="form-group">
			<?php echo $form->labelEx($model,'by_uptime'); ?>
			<?php echo $form->textField($model,'by_uptime'); ?>
			<?php echo $form->error($model,'by_uptime'); ?>
		</div>
	
	
		<div class="form-group">
			<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
			<?php echo CHtml::button('Back', array('onclick' => "history.go(-1);return false;"));?>
			
		</div>
</fieldset>

<?php $this->endWidget(); ?>

</div><!-- form -->
